package org.itcast.travel.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.itcast.travel.pojo.RaceVotes;
@Mapper
public interface RaceVotesMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(RaceVotes record);

    RaceVotes selectByPrimaryKey(Integer id);

    List<RaceVotes> selectAll();

    int updateByPrimaryKey(RaceVotes record);

    List<RaceVotes> selectOne(Integer userId, Integer raceId);

    void insertLike(Integer userId, Integer raceId);
}